package org.nokatag.code;

import java.util.ArrayList;
import java.util.List;

public class RippleFilterFactory extends AbstractFilterFactory
{

    protected List filters;
    protected RippleImageOp ripple;

    public RippleFilterFactory()
    {
        ripple = new RippleImageOp();
    }

    protected List getPreRippleFilters()
    {
        return new ArrayList();
    }

    protected List getPostRippleFilters()
    {
        return new ArrayList();
    }

    public List getFilters()
    {
        if(filters == null)
        {
            filters = new ArrayList();
            filters.addAll(getPreRippleFilters());
            filters.add(ripple);
            filters.addAll(getPostRippleFilters());
        }
        return filters;
    }
}
